package com.stary.pay.unionpay.api.request;

import java.util.Map;

import com.stary.pay.unionpay.api.UnionpayConstants;
import com.stary.pay.unionpay.api.UnionpayRequest;
import com.stary.pay.unionpay.api.response.UnionpayEncryptCertUpdateQueryResponse;
import com.stary.pay.unionpay.api.util.UnionpayHashMap;

/**
 * <p>unionpay encrypt cert update query request</p>
 * @author stary {@link stary1993@qq.com}
 * @since 2019-7-9
 */
public class UnionpayEncryptCertUpdateQueryRequest implements UnionpayRequest<UnionpayEncryptCertUpdateQueryResponse> {
	/**
	 * 银联加密公钥更新查询接口
	 */
	private String bizContent;
	
	public String getBizContent() {
		return bizContent;
	}

	public void setBizContent(String bizContent) {
		this.bizContent = bizContent;
	}
	
	public String getFrontUrl() {
		return null;
	}

	public void setFrontUrl(String frontUrl) {}

	public String getBackUrl() {
		return null;
	}

	public void setBackUrl(String backUrl) {}

	public Map<String, String> getTextParams() {
		UnionpayHashMap txtParams = new UnionpayHashMap();
		txtParams.put(UnionpayConstants.BIZ_CONTENT, this.bizContent);
		return txtParams;
	}

	public Class<UnionpayEncryptCertUpdateQueryResponse> getResponseClass() {
		return UnionpayEncryptCertUpdateQueryResponse.class;
	}
		
	public boolean isCheckSign() {
		return true;
	}

	public String getTxnType() {
		return UnionpayConstants.TXNTYPE_ENCRYPT_CERT_UPDATE_QUERY;
	}
	
	public String getTxnSubType() {		
		return UnionpayConstants.TXNSUBTYPE_00;
	}

	public String getBizType() {
		return UnionpayConstants.BIZTYPE_DEFAULT;
	}

	public String getChannelType() {
		return UnionpayConstants.CHANNELTYPE_PAGE;
	}
	
}
